function log(fn){
    if(fn==1){
        return 1
    }
    if(fn==2){
        return 1/2
    }
    return 1/fn+log(fn-2)
}
console.log(log(3))